package com.school.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.school.entity.HljtEducation;
import com.school.entity.web.EducationAll;
@Repository
public interface HljtEducationDao {
	/**
	 * 通过班级id查找对应德育模块
	 * @param classid
	 * @return
	 */
	List<HljtEducation> findEducation(@Param(value="classid")Integer classid,@Param(value="dutyid")Integer dutyid);
	/**
	 * 删除班级的德育模式
	 * @param classid
	 * @return
	 */
	Integer deleteEducation(Integer classid);
	
	/**
	 * 删除班级的德育模式
	 * @param classid
	 * @return
	 */
	Integer deleteEducationall(Integer dutyid);
	/**
	 * 添加对应班级的德育打分
	 * @param hljtEducation
	 * @return
	 */
	Integer addEducation(HljtEducation hljtEducation);
	/**
	 * 修改班级德育打分
	 * @param hljtEducation
	 * @return
	 */
	Integer updateEducation(HljtEducation hljtEducation);
	/**
	 * 分页查询
	 * @param pageSize
	 * @param pageIndex
	 * @return
	 */
	List<HljtEducation> selectHljtEducationPage(@Param(value="pageSize")Integer pageSize,@Param(value="pageIndex")Integer  pageIndex);
	/**
	 * 查找所有
	 * @return
	 */
	List<HljtEducation> selectHljtEducationAll();
	/**
	 * 查找对应班级德育模式信息
	 * @return
	 */
	List<EducationAll> findEducationAll(@Param(value="classid")Integer classid);
}
